<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>表单域</title>
</head>
<body>
    <form action="xxx.php" method="POST">
        <label for="text">用户名：<input type="text" id="text" name="username" value="请输入用户名" maxlength="6" />  <br />
        密码：<input type="password" name="pwd" /> <br>
        性别：<label for="sex1">男 <input type="radio" id="sex1" name="sex" value="男" /> 
        <label for="sex2">女 <input type="radio" id="sex2" name="sex" value="女" checked="checked" /> <br>
        爱好：吃饭<input type="checkbox" name="hobby" value="吃饭" /> 
        睡觉<input type="checkbox" name="hobby" value="睡觉" checked="checked" /> <br>
        <input type="submit" value="免费注册" /> 
        <input type="reset" value="重新填写" /> <br>
        <input type="button" value="获取短信验证码" /><br>
        上传头像： <input type="file" />
    </form>
</body>
</html>